home *** CD-ROM | disk | FTP | other *** search
/ .net - The Best of 1999/2000 / netCD Special01.iso / pc / Software / NetCaptor / ncsetup.EXE / %MAINDIR% / Flylib.dll / JAVASCRIPT / 102
Encoding:
Text File  |  2000-04-20  |  2.1 KB  |  94 lines

  1. <HTML>
  2. <HEAD>
  3. <SCRIPT LANGUAGE="Javascript1.2">
  4.  
  5. ///////////////// BEGIN FLYOBJECTS ///////////////////////////////
  6.  
  7. var flyobjectsversion = 5;
  8.  
  9. // Javascript Objects which are used by the Win32 code 
  10. // when generating data.
  11. // Any of the flystyle pages should be able to assume that
  12. // these data structures are present.
  13.  
  14. // A provider object
  15. function FSProvider(tag, name, bFixed)
  16. {
  17.     this.tag = tag;
  18.     this.name = name;
  19.     this.bFixed = bFixed;
  20. }
  21.  
  22. // The global provider hash
  23. function FSProviderHash()
  24. {
  25.     this.AddProviderList = fsprovhashAddProviderList;
  26.     this.LinkTypeArray = new Array();
  27.     this.ProviderListArray = new Array();
  28.     this.index = 0;
  29.     this.GetProviderList = fsGetProviderList;
  30. }
  31.  
  32. // Add provider list to provider hash
  33. function fsprovhashAddProviderList(linktype, providerList)
  34. {
  35.     this.LinkTypeArray[this.index] = linktype;
  36.     this.ProviderListArray[this.index] = providerList;
  37.     this.index++;
  38. }
  39.  
  40. // Get provider list from provider hash
  41. function fsGetProviderList(linktype)
  42. {
  43.     var providers = new Array();
  44.     for (var l in this.LinkTypeArray)
  45.     {
  46.  
  47.         if (this.LinkTypeArray[l] == linktype)
  48.         {
  49.             providers = this.ProviderListArray[l];
  50.             return providers;
  51.         }
  52.     }
  53.     return providers;
  54. }
  55.  
  56. // The linktype object
  57. function FSLinkType(name, type)
  58. {
  59.     this.name = name;
  60.     this.type = type;
  61. }
  62.  
  63. // the keyword object
  64. function FSKeyword(name, code, linktypes, mt, cat, categoryWide, categoryCode)
  65. {
  66.     this.name = name;
  67.     this.code = code;
  68.     this.mt = mt;
  69.     this.linktypes = linktypes;
  70.     this.category = cat;
  71.     this.categoryWide = categoryWide;
  72.     this.categoryCode = categoryCode;
  73. }
  74.  
  75. // The category object
  76. function FSCategory(name, keywords, hidden)
  77. {
  78.     this.name = name;
  79.     this.keywords = keywords;
  80.     this.hidden = hidden;
  81. }
  82.  
  83. // The environment object
  84. function FSEnvironment(userID, sessionID, requestID, distTag, redirectorURL, src)
  85. {
  86.     this.userID = userID;
  87.     this.sessionID = sessionID;
  88.     this.requestID = requestID;
  89.     this.distTag = distTag;
  90.     this.redURL = redirectorURL;
  91.     this.src = src;
  92. }
  93.  
  94. ///////////////// END FLYOBJECTS ///////////////////////////////